#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#include<string.h>
struct stu
{
	int num;
	char name[10];
	double hig;
	short age;
};
int main(void)
{
	//FILE* pfile = NULL;
	//fopen_s(&pfile, "", "");
	struct stu q = { 1,"454",2.2,45 };
	//int a;
	FILE* pfile = fopen("C:\\Users\\32867\\Desktop\\hbsc\\wzsrx\\1.txt", "w");
	fprintf(pfile, "%d,%s,%f", 10, "sfs", 1.22);
	/*fputs("jfldsj", pfile);
	fputs("c3", pfile);*/
	//char* str = "hello,zc";
	//char str[20] = { 0 };
	//fread(&q, sizeof(struct stu), 1, pfile);
	/*a=fwrite(str, sizeof(char), strlen(str) + 1, pfile);
	a = errno;*/
	fclose(pfile);
	//printf("%s", str);
	return 0;
}